SftTabs/NET 6.0

Tab Constructor

Softel vdm, Inc.

Initializes a new instance of the Tab class.

Syntax      Tab Class (Softelvdm.SftTabsNET)

VB   

Public Sub New()
Public Sub New( ByVal Text As String )
Public Sub New( _
     ByVal Text As String, _
     ByVal Align As TabAlignStyle, _
     ByVal ToolTip As String, _
     ByVal Enabled As Boolean )
Public Sub New( _
     ByVal Text As String, _
     ByVal Align As TabAlignStyle, _
     ByVal ToolTip As String, _
     ByVal Enabled As Boolean, _
     ByVal Image As Image, _
     ByVal ImageList As ImageList, _
     ByVal ImageIndex As Integer, _
     ByVal Transparent As Boolean, _
     ByVal Tag1 As Object, _
     ByVal Tag2 As Object )
Public Sub New( _
     ByVal Text As String, _
     ByVal Align As TabAlignStyle, _
     ByVal ToolTip As String, _
     ByVal Enabled As Boolean, _
     ByVal Image As Image, _
     ByVal ImageList As ImageList, _
     ByVal ImageIndex As Integer, _
     ByVal Transparent As Boolean, _
     ByVal Tag1 As Object, _
     ByVal Tag2 As Object, _
     ByVal BackColor As Color, _
     ByVal BackColorSelected As Color, _
     ByVal ForeColor As Color, _
     ByVal ForeColorSelected As Color, _
     ByVal ClientAreaColor As Color, _
     ByVal HotTrackColor As Color )
Public Sub New( _
     ByVal Text As String, _
     ByVal Align As TabAlignStyle, _
     ByVal ToolTip As String, _
     ByVal Name As String, _
     ByVal Enabled As Boolean, _
     ByVal Visible As Boolean, _
     ByVal Image As Image, _
     ByVal ImageList As ImageList, _
     ByVal ImageIndex As Integer, _
     ByVal Transparent As Boolean, _
     ByVal Tag1 As Object, _
     ByVal Tag2 As Object, _
     ByVal BackColor As Color, _
     ByVal BackColorSelected As Color, _
     ByVal ForeColor As Color, _
     ByVal ForeColorSelected As Color, _
     ByVal ClientAreaColor As Color, _
     ByVal HotTrackColor As Color )

C#   

public Tab();
public Tab( string Text );
public Tab(
     string Text,
     TabAlignStyle Align,
     string ToolTip,
     bool Enabled );
public Tab(
     string Text,
     TabAlignStyle Align,
     string ToolTip,
     bool Enabled,
     Image Image,
     ImageList ImageList,
     int ImageIndex,
     bool Transparent,
     object Tag1,
     object Tag2 );
public Tab(
     string Text,
     TabAlignStyle Align,
     string ToolTip,
     bool Enabled,
     Image Image,
     ImageList ImageList,
     int ImageIndex,
     bool Transparent,
     object Tag1,
     object Tag2,
     Color BackColor,
     Color BackColorSelected,
     Color ForeColor,
     Color ForeColorSelected,
     Color ClientAreaColor,
     Color HotTrackColor );
public Tab(
     string Text,
     TabAlignStyle Align,
     string ToolTip,
     string Name,
     bool Enabled,
     bool Visible,
     Image Image,
     ImageList ImageList,
     int ImageIndex,
     bool Transparent,
     object Tag1,
     object Tag2,
     Color BackColor,
     Color BackColorSelected,
     Color ForeColor,
     Color ForeColorSelected,
     Color ClientAreaColor,
     Color HotTrackColor );

C++   

public: Tab();
public: Tab( String^ Text );
public: Tab(
     String^ Text,
     TabAlignStyle Align,
     String^ ToolTip,
     bool Enabled );
public: Tab(
     String^ Text,
     TabAlignStyle Align,
     String^ ToolTip,
     bool Enabled,
     Image^ Image,
     ImageList^ ImageList,
     int ImageIndex,
     bool Transparent,
     Object^ Tag1,
     Object^ Tag2 );
public: Tab(
     String^ Text,
     TabAlignStyle Align,
     String^ ToolTip,
     bool Enabled,
     Image^ Image,
     ImageList^ ImageList,
     int ImageIndex,
     bool Transparent,
     Object^ Tag1,
     Object^ Tag2,
     Color BackColor,
     Color BackColorSelected,
     Color ForeColor,
     Color ForeColorSelected,
     Color ClientAreaColor,
     Color HotTrackColor );
public: Tab(
     String^ Text,
     TabAlignStyle Align,
     String^ ToolTip,
     String^ Name,
     bool Enabled,
     bool Visible,
     Image^ Image,
     ImageList^ ImageList,
     int ImageIndex,
     bool Transparent,
     Object^ Tag1,
     Object^ Tag2,
     Color BackColor,
     Color BackColorSelected,
     Color ForeColor,
     Color ForeColorSelected,
     Color ClientAreaColor,
     Color HotTrackColor );

Align

Defines the tab's text and image alignment (Align property).

TabAlignStyle

Value

Description

LeftGraph

0

The graphic is displayed to the left of the tab text. Text and graphic are horizontally and vertically centered within the tab.

RightGraph

1

The graphic is displayed to the right of the tab text. Text and graphic are horizontally and vertically centered within the tab.

TopGraph

2

The graphic is displayed above the tab text. Text and graphic are horizontally and vertically centered within the tab.

BottomGraph

3

The graphic is displayed below the tab text. Text and graphic are horizontally and vertically centered within the tab.

Left

4

The graphic is displayed to the left of the tab text. Text and graphic are displayed left adjusted and vertically centered within the tab.

Right

5

The graphic is displayed to the right of the tab text. Text and graphic are displayed right adjusted and vertically centered within the tab.

BackColor

Defines the tab's background color (BackColor property).

BackColorSelected

Defines the tab's background color, used when then tab is the current tab (BackColorSelected property).

ClientAreaColor

Defines the color of the client area associated with the tab (ClientAreaColor property).

Enabled

Defines whether the tab is enabled (Enabled property).

ForeColor

Defines the tab's foreground color (ForeColor property).

ForeColorSelected

Defines the tab's foreground color, used when then tab is the current tab (ForeColorSelected property).

HotTrackColor

Defines the tab's foreground color used for hot-tracking (HotTrackColor property).

Image

Defines the Image displayed in the tab (Image property).

ImageIndex

Defines the image index used for the tab image (ImageIndex property).

ImageList

Defines the ImageList used for the tab image (ImageList property).

Name

Defines the tab's name, used to access the tab by name instead of by index (Name property).

Tag1

Defines the tab's application-defined object (Tag1 property).

Tag2

Defines the tab's application-defined object (Tag2 property).

Text

Defines the tab's text (Text property).

ToolTip

Defines the tab's tooltip text (ToolTip property).

Transparent

Defines whether the tab image uses image transparency (Transparent property).

Visible

Defines whether the tab is visible (Visible property).

Comments

The Tab constructor initializes a new instance of the Tab class.

The Tab class has been replaced by the new, equivalent TabClass type. Only the TabClass constructor without arguments should be used starting with SftTabs/NET 6.0, as most properties (such as Align) have been replaced with newer features.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com